﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XsqTech.SmartOA.Dtos.XSPDto.FormDto;
using XsqTech.SmartOA.Dtos.XSPDto.FromDto;
using XsqTech.SmartOA.Service.DTO;

namespace XsqTech.SmartOA.IService
{
    public interface IMenuService
    {
        /// <summary>
        /// 递归
        /// </summary>
        /// <returns></returns>
        ResponseModel MenuRecursion();
        /// <summary>
        /// 菜单添加
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        ResponseModel AddMenu(MenuDto dto);
        /// <summary>
        /// 菜单显示
        /// </summary>
        /// <param name="UserName"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        ResponseModel MenuQuery(string Name);
        /// <summary>
        /// 菜单删除（单删）
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ResponseModel MenuDelete(string id);
        /// <summary>
        /// 菜单删除（批删）
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        ResponseModel AllMenuDelete(List<MenuDto> dto);
        /// <summary>
        /// 菜单反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ResponseModel MenuQueryId(string id);
        /// <summary>
        /// 菜单修改
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        ResponseModel UpdateMenu(MenuDto dto);
    }
}
